package com.geektime.hello;

import java.util.Date;

/**
 * @Date 2020-10-26 10:42
 * @Author Pzy
 * @Description
 */
public class DateDemo2 {
    public static void main(String[] args) {

        Date date = new Date();
        System.out.println("year = " + (date.getYear() + 1900));
    }
}
